package control;

import java.util.List;

import model.dao.SurveyDetailDao;
import model.dao.TeacherDao;
import model.entity.SurveyDetail;
import model.entity.Teacher;

public class text {
	public static void main(String[] args) {
		Teacher tt=new Teacher();
		TeacherDao td=new TeacherDao();
		Teacher tt1=new Teacher();
		tt.setName("jj");
		tt.setSex("男");
		tt.setAge(26);
		tt.setDuty("校长");
		tt1.setName("jia");
		tt1.setSex("女");
		tt1.setAge(22);
		tt1.setDuty("系主任");
		td.update(tt, tt1, "and");
		
	}
}
